#include "FWSound.h"


FWSound::FWSound()
{
	this->_soundBuffer = NULL;
}


FWSound::~FWSound()
{
}

void FWSound::setSound(LPDIRECTSOUNDBUFFER src)
{
	this->_soundBuffer = src;
}

void FWSound::play()
{
	this->_soundBuffer->Play(0, 0, 0);
}

void FWSound::playSoundLoop()
{
	this->_soundBuffer->Play(0, 0, DSBPLAY_LOOPING);
}

void FWSound::stop()
{
	this->_soundBuffer->Stop();
}